package com.example.routeplansystem.dao;

import com.example.routeplansystem.entity.po.Solution;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SolutionDao {

    List<Solution> findSolutions(int finalSolutionId);

    boolean insertSolution(Solution solution);

    boolean deleteSolution(int solutionId);

    //根据ID删除最中解决方案（最终选定的方案）：
    boolean deleteSolutionByFinalSolutionId(int finalSolutionId);

    List<Solution> findSolutionByIdList(@Param("findSolutionIds") List<Integer> findSolutionIds);

    boolean batchInsertSolution(List<Solution> solutions);
}
